﻿@{
    Check.User(Can.DeleteItemsFromMenu);
    var menuItemId = UrlData[0];
    var menuId = UrlData[1];
    var db = Database.Open((string) App.Database);
    var commandText = "DELETE FROM MenuItems WHERE MenuItemId = @0";
    db.Execute(commandText, menuItemId);
    Response.Redirect("~/Admin/Menus/MenuManager/" + menuId);
}